import request from '@/utils/request'

// 查询产品不良数据列表
export function listProductDefectData(query) {
  return request({
    url: '/produce/product-defect-data/list',
    method: 'get',
    params: query
  })
}

// 查询产品不良数据详细
export function getProductDefectData(id) {
  return request({
    url: '/produce/product-defect-data/' + id,
    method: 'get'
  })
}

// 新增产品不良数据
export function addProductDefectData(data) {
  return request({
    url: '/produce/product-defect-data',
    method: 'post',
    data: data
  })
}

// 修改产品不良数据
export function updateProductDefectData(data) {
  return request({
    url: '/produce/product-defect-data',
    method: 'put',
    data: data
  })
}

// 删除产品不良数据
export function delProductDefectData(id) {
  return request({
    url: '/produce/product-defect-data/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品不良数据
export function removedProductDefectData(id) {
  return request({
    url: '/produce/product-defect-data/' + id,
    method: 'delete'
  })
}
